Crate amethyst_input

Source
Expand description

A collection of abstractions for various input devices to be used with Amethyst.

Structs§

  • Used for saving and loading input settings.
  • Bundle for adding the InputHandler.
  • This struct holds state information about input devices.
  • Input system
  • Builds an InputSystem.
  • The builtin BindingTypes implementation, set of types for binding configuration keys. Uses String for both axes and actions. Usage of this type is discouraged and it’s meant mainly for prototypes. Check BindingTypes for examples.

Enums§

Traits§

  • Define a set of types used for bindings configuration. Usually defaulted to StringBindings, which uses Strings.

Functions§

  • Gets the input axis value from the InputHandler. If the name is None, it will return the default value of the axis (0.0).
  • If this event was for manipulating a keyboard key then this will return the VirtualKeyCode and the new state.
  • If this event was for manipulating a mouse button, this will return the MouseButton and the new state.
  • Returns true if the event passed in is a request to close the game window.
  • Returns true if the event passed in is a key down event for the provided VirtualKeyCode.
  • Returns true if the event passed in is a key up event for the provided VirtualKeyCode.
  • Returns true if the event passed in is a mouse button down event for the provided MouseButton.